import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        flowPermission: [],
        approverDrawer: false,
        approverConfig:{},
        copyerConfig:{},
        conditionsConfig:{
            conditionNodes: [],
        },
    },
    mutations: {
        updateApprover(status,approverDrawer){
            status.approverDrawer = approverDrawer
        },
        updateApproverConfig(status,approverConfig){
            status.approverConfig = approverConfig
        },
    },
    actions: {}
})